package org.example.controller;

import org.example.service.imp.TestService;
import org.example.service.imp.UserServiceImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller
public class TestController {
    @Autowired
    private TestService testService;
    @ResponseBody
    @RequestMapping("/test1")
    public void test1(HttpServletRequest request){
        testService.test("测试");
        System.out.println();
    }
}
